package com.nuc.list1;

import java.util.ArrayList;

/**
 * Time    : 2023/3/30 10:20
 * Author  : 王摇摆
 * FileName: Demo7.java
 * Software: IntelliJ IDEA 2020.2.2
 * Blog    ：https://blog.csdn.net/weixin_44943389?type=blog
 */

public class Demo7 {
    public static void main(String[] args) {
        ArrayList<String> person = new ArrayList<>();
        ArrayList<String> game = new ArrayList<>();

        game.add("守望先锋");

        if (person.isEmpty()) {
            System.out.println(person.isEmpty());
            System.out.println("person列表空的");
        } else
            System.out.println("person列表不是空的");

        if (game.isEmpty()) {
            System.out.println("game列表是空的");
        } else
            System.out.println("game列表不是空的");

    }
}
